<template>
  <el-dialog :visible.sync="dialogVisible" v-bind="$attrs">
    <slot />
    <span slot="footer" class="dialog-footer">
      <el-button @click="dialogVisible = false">取 消</el-button>
      <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  name: "AegleDialog",
  data() {
    return {
      dialogVisible: false,
    };
  },
  created() {
    console.log(this);
  },
  methods: {
    open() {
      this.dialogVisible = true;
    },
  },
};
</script>

<style></style>
